<!--
author:        leishanfeng <1628316216@qq.com>
date:          2023-07-05 19:49:40
component:     index
Copyright © YourCompanyName All rights reserved
-->
<template>
  <div class="bigBox">
    <borderomponent>
      <!-- <Map></Map> -->
      <!-- <template v-slot:content> -->
      <dialogXinzengchengyuan
        :isdialogVisibleNew="isDialogVisible"
        @jianting="jianting"
        :department="department"
        @name="getName"
      ></dialogXinzengchengyuan>
      <selectPersonPopup
        @getHeadName="getHeadName"
        @addMembers="addMembers"
        @close="clsoe"
        :isOuterVisible="isOuterVisible"
      ></selectPersonPopup>
      <div class="bigBox-box">
        <div class="bigBox-box-tab">
          <el-form
            :model="numberValidateForm"
            ref="numberValidateForm"
            class="demo-ruleForm"
          >
            <div class="bigBox-box-tab-item">
              <el-form-item label="防护目标名称：" prop="protectName">
                <div class="bigBox-box-tab-item-xq">
                  {{ numberValidateForm.protectName }}
                </div>
              </el-form-item>
              <el-form-item label="防护目标类型：" prop="protectType">
                <div class="bigBox-box-tab-item-xq">
                  {{ numberValidateForm.protectType }}
                </div>
              </el-form-item>
              <el-form-item
                label="社会统一信用代码："
                prop="cid"
                v-if="isxinyong"
                :rules="[
                  {
                    required: true,
                    message: '社会统一信用代码',
                    trigger: 'blur'
                  },
                  {
                    min: 18,
                    max: 18,
                    message: '请输入18位社会统一信用代码',
                    trigger: 'blur'
                  }
                ]"
              >
                <el-input
                  placeholder="请输入社会统一信用代码"
                  v-model="numberValidateForm.cid"
                  oninput="if(value.length>18){value=value.slice(0,18)}"
                  v-if="isEdit"
                ></el-input>
                <div class="bigBox-box-tab-item-xq" v-if="!isEdit">
                  {{ numberValidateForm?.cid }}
                </div>
              </el-form-item>
            </div>
            <div class="bigBox-box-tab-newitem NewMapBox">
              <el-form-item
                hide-required-asterisk="true"
                :rules="{
                  required: true,
                  message: '请输入地址',
                  trigger: 'blur'
                }"
                label="防护目标地址"
                prop="address"
              >
                <!-- <el-input
                  placeholder="请输入关键词选择地址"
                  v-model="numberValidateForm.address"
                >
                  <template slot="append">
                    <div class="append-wrapper append-cup">
                      <div class="append-txt">选择地址</div>
                      <i class="el-icon el-icon-address-outline"></i>
                    </div>
                  </template>
                </el-input> -->
                <div class="bigBox-box-tab-item-xq" v-if="!isEdit">
                  {{ numberValidateForm?.address }}
                </div>
                <NewMap
                  @childByValue="childValue"
                  :Newaddress="Newaddress"
                  @getAddress="getAddress"
                  :newClass="true"
                  v-if="isEdit"
                ></NewMap>
              </el-form-item>
            </div>
            <div class="bigBox-box-tab-newitem">
              <div style="font-size: 16px; color: #fff">负责人</div>
              <el-form-item
                hide-required-asterisk="true"
                :rules="{
                  required: true,
                  message: '请选择安全生产第一责任人不能为空',
                  trigger: 'blur'
                }"
                label="安全生产第一责任人"
                prop="firstHead"
              >
                <el-input
                  placeholder="请选择安全生产第一责任人"
                  v-model="numberValidateForm.firstHead"
                  :disabled="true"
                  v-if="isEdit"
                >
                  <template slot="append">
                    <div class="append-box" @click="tianjia(1, true)">
                      <div>添加人员</div>
                      <div class="append-img renyuan"></div>
                    </div>
                  </template>
                </el-input>
                <div class="bigBox-box-tab-item-xq" v-if="!isEdit">
                  {{ numberValidateForm?.firstHead }}
                </div>
              </el-form-item>
            </div>
            <div class="bigBox-box-tab-newitem">
              <div>&emsp;&emsp;&emsp;&ensp;</div>
              <el-form-item
                hide-required-asterisk="true"
                :rules="{
                  required: true,
                  message: '请选择安全生产分管责任人不能为空',
                  trigger: 'blur'
                }"
                label="安全生产分管责任人"
                prop="depHead"
              >
                <el-input
                  placeholder="请选择安全生产分管责任人"
                  v-model="numberValidateForm.depHead"
                  :disabled="true"
                  v-if="isEdit"
                >
                  <template slot="append">
                    <div class="append-box" @click="tianjia(2, true)">
                      <div>添加人员</div>
                      <div class="append-img renyuan"></div>
                    </div>
                  </template>
                </el-input>
                <div class="bigBox-box-tab-item-xq" v-if="!isEdit">
                  {{ numberValidateForm?.depHead }}
                </div>
              </el-form-item>
            </div>
            <div class="bigBox-box-tab-newitem">
              <div>&emsp;&emsp;&emsp;&ensp;</div>
              <el-form-item
                hide-required-asterisk="true"
                :rules="{
                  required: true,
                  message: '请选择安全内设机构负责人不能为空',
                  trigger: 'blur'
                }"
                label="安全内设机构负责人"
                prop="orgHead"
              >
                <el-input
                  placeholder="请选择安全内设机构负责人"
                  v-model="numberValidateForm.orgHead"
                  :disabled="true"
                  v-if="isEdit"
                >
                  <template slot="append">
                    <div class="append-box" @click="tianjia(3, true)">
                      <div>添加人员</div>
                      <div class="append-img renyuan"></div>
                    </div>
                  </template>
                </el-input>
                <div class="bigBox-box-tab-item-xq" v-if="!isEdit">
                  {{ numberValidateForm?.orgHead }}
                </div>
              </el-form-item>
            </div>
            <div class="bigBox-box-tab-item">
              <el-form-item
                hide-required-asterisk="true"
                :rules="{
                  required: true,
                  message: `请输入${diyitishiyu}`,
                  trigger: 'blur'
                }"
                :label="diyitishiyu"
                prop="peopleNum1"
                v-if="isYi"
              >
                <el-input
                  :placeholder="'请输入' + diyitishiyu"
                  v-model="numberValidateForm.peopleNum1"
                  v-if="isEdit"
                ></el-input>
                <div class="bigBox-box-tab-item-xq" v-if="!isEdit">
                  {{ numberValidateForm?.peopleNum1 }}
                </div>
              </el-form-item>
              <el-form-item
                hide-required-asterisk="true"
                :rules="{
                  required: true,
                  message: `请输入${diertishiyu}`,
                  trigger: 'blur'
                }"
                :label="diertishiyu"
                prop="peopleNum2"
                v-if="isEr"
              >
                <el-input
                  :placeholder="'请输入' + diertishiyu"
                  v-model="numberValidateForm.peopleNum2"
                  v-if="isEdit"
                ></el-input>
                <div class="bigBox-box-tab-item-xq" v-if="!isEdit">
                  {{ numberValidateForm?.peopleNum2 }}
                </div>
              </el-form-item>
              <el-form-item
                hide-required-asterisk="true"
                :rules="{
                  required: true,
                  message: `请输入观众席位`,
                  trigger: 'blur'
                }"
                label="观众席位"
                prop="peopleNum3"
                v-if="
                  numberValidateForm.protectType ==
                    '体育场馆（座位数500或以上）' ||
                  numberValidateForm.protectType == '体育场馆'
                "
              >
                <el-input
                  placeholder="'请输入观众席位"
                  v-model="numberValidateForm.peopleNum3"
                  v-if="isEdit"
                ></el-input>
                <div class="bigBox-box-tab-item-xq" v-if="!isEdit">
                  {{ numberValidateForm?.peopleNum3 }}
                </div>
              </el-form-item>
            </div>
            <el-form-item label="防护目标概况" prop="dsc">
              <el-input
                type="textarea"
                placeholder="请输入"
                v-model="numberValidateForm.dsc"
                maxlength="200"
                show-word-limit
                resize="none"
                :rows="3"
                v-if="isEdit"
              >
              </el-input>
              <div class="bigBox-box-tab-item-xq" v-if="!isEdit">
                {{ numberValidateForm?.dsc }}
              </div>
            </el-form-item>
            <div
              style="
                width: 100%;
                display: flex;
                justify-content: center;
                align-items: center;
                position: absolute;
                bottom: 0;
                margin-bottom: 19px;
              "
            >
              <el-button
                @click="bianji"
                v-if="!isEdit"
                style="
                  border: 1px solid #38c2c6;
                  background: #38c2c6;
                  border-radius: 4px;
                  font-size: 16px;
                  font-family: MicrosoftYaHei;
                  color: rgba(255, 255, 255, 0.9);
                "
                >编辑</el-button
              >
              <el-button
                size="mini"
                type="danger"
                v-if="isEdit"
                @click="Back"
                class="table-cancel-btn"
                >返回
              </el-button>
              <el-button
                v-if="isEdit"
                type="primary"
                @click="submitForm('numberValidateForm')"
                style="
                  border: 1px solid #38c2c6;
                  background: #38c2c6;
                  border-radius: 4px;
                  font-size: 16px;
                  font-family: MicrosoftYaHei;
                  color: rgba(255, 255, 255, 0.9);
                "
                >保存</el-button
              >
            </div>
          </el-form>
        </div>
      </div>
      <!-- </template> -->
    </borderomponent>
  </div>
</template>

<script>
import addPersonnelTree from '@/components/addPersonnelTree/index.vue'
import borderomponent from '@/components/borderomponent/index.vue'
import dialogXinzengchengyuan from '@/components/dialog-xinzengchengyuan.vue'
import selectPersonPopup from '@/components/selectPersonPopup/index.vue'
import {
  protectTargetGetByDepId,
  protectTargetSaveOrUpdate,
  organizationListTree,
  orgDetail,
  idaasFindUsersByDepId
} from '@/api/resourceManagement/index.js'
import NewMap from '@/components/egis-map/map.vue'
const validPhone = (rule, value, callback) => {
  if (!value) {
    callback(new Error('请输入手机号码'))
  } else if (value.lenght < 11) {
    //判断用户输入的值是否符合规则
    callback(new Error('请输入11位手机号码'))
  }
}
export default {
  name: 'protectionTargetAdministrator',
  components: {
    borderomponent,
    addPersonnelTree,
    selectPersonPopup,
    NewMap,
    dialogXinzengchengyuan
  },

  data() {
    return {
      isEdit: false,
      isOuterVisible: false,
      Newaddress: {
        address: '',
        coordinateX: '',
        coordinateY: ''
      },
      isxinyong: true,
      isYi: true,
      isEr: true,
      diyitishiyu: '',
      diertishiyu: '',
      department: 'xxx',
      isDialogVisible: 0,
      renyuan: '',
      renyuanType: '',
      dialogVisible: false,
      filterText: '',
      renyuanfilterText: '',
      data: [],
      renyaundata: [],
      defaultProps: {
        children: 'children',
        label: 'label'
      },
      newDialogVisible: false,
      ProtectiveTargetsArray: [
        { name: '学校（大中小学、公立幼儿园）', value: '1' },
        { name: '医院', value: '2' },
        { name: '商超（ 年交易额亿元以上）', value: '3' },
        { name: '公立养老院', value: '4' },
        { name: '公立儿童福利院', value: '5' },
        { name: '体育场馆（座位数500或以上）', value: '6' },
        { name: '旅游景区（3A级或以上）', value: '7' },
        { name: '火车站', value: '8' },
        { name: '客运站', value: '9' },
        { name: '公交公司', value: '10' },
        { name: '高危企业', value: '11' },
        { name: '森林草原火险重点防范单位', value: '12' }
      ],
      ProtectiveTargetsIndex: '1',
      numberValidateForm: {
        id: '',
        depId: '', //部门id，暂时自填
        protectName: '', //防护目标名称
        protectType: '', //防护目标类型
        cid: '', //社会统一信用代码
        address: '', //驻地位置
        coordinateX: '', //x坐标
        coordinateY: '', //y坐标
        firstHead: '', //第一负责人
        depHead: '', //分管负责人
        orgHead: '', //机构负责人
        peopleNum1: '', //人数1
        peopleNum2: '', //人数2
        area: '', //面积
        dsc: '' //备注
      }
    }
  },
  mounted() {
    console.log(this.$userInfo)
    this.protectTargetGetByDepId()
  },
  watch: {
    filterText(val) {
      this.$refs.tree.filter(val)
    },
    renyuanfilterText(val) {
      this.$refs.newtree.filter(val)
    }
  },
  methods: {
    Back() {
      this.isEdit = false
    },
    bianji() {
      this.isEdit = true
    },
    getAddress(e) {
      this.numberValidateForm.address = e
    },
    clsoe() {
      this.isOuterVisible = false
    },
    // 开启成员选择
    tianjia(e, isTrue) {
      this.renyuanType = e
      this.isOuterVisible = isTrue
      console.log(this.isOuterVisible)
    },
    // 新增成员
    addMembers() {
      this.isOuterVisible = false
      this.isDialogVisible = true
    },
    // 获取负责人
    getHeadName(e) {
      this.isOuterVisible = false
      console.log(e.displayName)
      // this.$set(this.numberValidateForm, 'headName', e.displayName)
      // console.log(e.displayName, this.numberValidateForm.headName)
      if (this.renyuanType == 1) {
        this.numberValidateForm.firstHead = e.displayName
        this.numberValidateForm.firstHeadPhone = e.phoneNum
        this.numberValidateForm.firstHeadId = e.id
      } else if (this.renyuanType == 2) {
        this.numberValidateForm.depHead = e.displayName
        this.numberValidateForm.depHeadPhone = e.phoneNum
        this.numberValidateForm.depHeadId = e.id
      } else if (this.renyuanType == 3) {
        this.numberValidateForm.orgHead = e.displayName
        this.numberValidateForm.orgHeadPhone = e.phoneNum
        this.numberValidateForm.orgHeadId = e.id
      }
    },
    childValue(e) {
      console.log(e)
      this.Newaddress = e
      this.Newaddress.address = this.numberValidateForm.address
      // this.numberValidateForm.address = e.address
      this.numberValidateForm.coordinateX = e.latitude
      this.numberValidateForm.coordinateY = e.longitude
      console.log(this.numberValidateForm)
    },
    getName(e) {
      this.filterText = ''
      this.renyuanfilterText = ''
      if (e == 1) {
        this.dialogVisible = false
      } else {
        if (this.renyuanType == 1) {
          this.numberValidateForm.firstHead = e.name
          this.numberValidateForm.firstHeadPhone = e.phone
          this.numberValidateForm.firstHeadId = e.id
        } else if (this.renyuanType == 2) {
          this.numberValidateForm.depHead = e.name
          this.numberValidateForm.depHeadPhone = e.phone
          this.numberValidateForm.depHeadId = e.id
        } else if (this.renyuanType == 3) {
          this.numberValidateForm.orgHead = e.name
          this.numberValidateForm.orgHeadPhone = e.phone
          this.numberValidateForm.orgHeadId = e.id
        }
        console.log(e)
        this.dialogVisible = false
      }
    },
    jianting(e) {
      this.isDialogVisible = 0
    },
    xinzeng() {
      console.log('新增成员')
      this.isDialogVisible = 1
      this.dialogVisible = false
    },
    handleClose() {
      this.dialogVisible = false
      console.log(12234, this.dialogVisible)
      this.$forceUpdate()
    },
    newdialogVisible(e) {
      console.log(e)
      this.filterText = ''
      this.renyuanfilterText = ''
      if (e == 1) {
        this.dialogVisible = false
      } else {
        if (this.renyuanType == 1) {
          this.numberValidateForm.firstHead = this.renyuan
        } else if (this.renyuanType == 2) {
          this.numberValidateForm.depHead = this.renyuan
        } else if (this.renyuanType == 3) {
          this.numberValidateForm.orgHead = this.renyuan
        }
        console.log(e)
        this.dialogVisible = false
      }
    },
    filterNode(value, data) {
      console.log(data)
      if (!value) return true
      return data.label.indexOf(value) !== -1
    },
    handleNodeClick(data) {
      console.log(data)
      if (data.children.length == 0) {
        idaasFindUsersByDepId({ depId: data.id }).then(res => {
          console.log(res)
          this.renyaundata = JSON.parse(
            JSON.stringify(res.data).replace(/name/g, 'label')
          )
        })
      }
    },
    renyuanHandleNodeClick(data) {
      console.log(data.label)
      this.renyuan = data.label
    },
    //
    protectTargetGetByDepId() {
      let data = { depId: this.$userInfo.orgId }
      protectTargetGetByDepId(data).then(res => {
        if (
          res.data.protectType == '学校（大中小学、公立幼儿园）' ||
          res.data.protectType == '学校(大中小学、公立幼儿园)'
        ) {
          this.diyitishiyu = '教职工人数'
          this.diertishiyu = '在校生数'
        } else if (res.data.protectType == '医院') {
          this.diyitishiyu = '在岗职工人数'
          this.diertishiyu = '年度总诊疗人次数'
        } else if (
          res.data.protectType == '商超（ 年交易额亿元以上）' ||
          res.data.protectType == '商超' ||
          res.data.protectType == '商超(年交易额亿元以上)'
        ) {
          this.diyitishiyu = '年末从业人数'
          this.diertishiyu = '日最大流量'
        } else if (
          res.data.protectType == '公立养老院' ||
          res.data.protectType == '公立儿童福利院'
        ) {
          this.diyitishiyu = '在岗职工情况'
          this.diertishiyu = '年末在院人数'
        } else if (
          res.data.protectType == '旅游景区（3A级或以上）' ||
          res.data.protectType == '旅游景区' ||
          res.data.protectType == '旅游景区(3A级或以上)'
        ) {
          this.diyitishiyu = '总就业人数'
          this.diertishiyu = '日最大承载量'
        } else if (
          res.data.protectType == '火车站' ||
          res.data.protectType == '客运站' ||
          res.data.protectType == '公交公司管理员' ||
          res.data.protectType == '公交公司'
        ) {
          this.diyitishiyu = '日均人流数量 (含职工、日均接待人数)'
          this.isEr = false
          this.isxinyong = false
        } else if (res.data.protectType == '高危企业') {
          this.isYi = false
          this.isEr = false
        } else if (res.data.protectType == '森林草原火险重点防范单位') {
          this.isEr = false
          this.diyitishiyu = '面积（m2）'
          this.isxinyong = false
        } else if (
          res.data.protectType == '体育场馆（座位数500或以上）' ||
          res.data.protectType == '体育场馆' ||
          res.data.protectType == '体育场馆(座位数500或以上)'
        ) {
          this.diyitishiyu = '场地从业人员总数'
          this.diertishiyu = '平均每周接待人次'
        }
        this.numberValidateForm = res.data
        console.log(this.Newaddress)
        this.Newaddress.address = res.data.address
        this.Newaddress.coordinateX = res.data.coordinateX
        this.Newaddress.coordinateY = res.data.coordinateY
      })
    },
    submitForm(formName) {
      if (
        this.numberValidateForm.coordinateX == '' ||
        this.numberValidateForm.coordinateY == ''
      ) {
        this.$message({
          message: '请选择经纬度',
          type: 'warning'
        })
        return
      }
      this.$refs[formName].validate(valid => {
        if (valid) {
          this.numberValidateForm.areaCode = this.$userInfo.areaCode
          this.numberValidateForm.depId = this.$userInfo.orgId
          let data = this.numberValidateForm
          protectTargetSaveOrUpdate(data).then(res => {
            console.log(res, '保存成功')

            if (res && res.code == 0) {
              this.isEdit = false
              this.$message.success('保存成功')
            } else {
              this.$message.error('服务端返回数据异常')
            }
          })
        } else {
          console.log('error submit!!')
          return false
        }
      })
    }
  }
}
</script>
<style lang="scss">
.bigBox {
  width: 100%;
  height: 100%;
  position: relative;
  .bigBox-box {
    padding: 20px;
    .bigBox-box-tab {
      margin-top: 20px;
      .bigBox-box-tab-item {
        // width: 100%;
        height: 32px;
        display: flex;
        margin-bottom: 25px;
        justify-content: space-between;
        align-items: center;
        margin-right: 100px;
        .el-form-item__label {
          font-size: 16px;
          font-family: MicrosoftYaHei;
          color: #cbe7ff !important;
        }
        .el-input-group__append,
        .el-input-group__prepend {
          background: rgba(124, 173, 216, 0.2) !important;
          border-radius: 0px 4px 4px 0px !important;
          border: 1px solid #7cadd8 !important;
          color: #ffffff;
        }
        .el-form-item {
          display: flex;
          align-items: center;
          width: 40%;
          margin: 0;
        }
        .el-form-item__content {
        }
        .bigBox-box-tab-item-xq {
          font-size: 16px;
          font-family: MicrosoftYaHei;
          color: #ffffff;
        }
        .append-box {
          display: flex;
          height: 28px;
          justify-content: flex-start;
          align-items: center;
          font-size: 16px;
          cursor: pointer;
        }
        .append-img {
          width: 14px;
          height: 14px;
          margin-left: 10px;
        }
      }
      .bigBox-box-tab-newitem {
        // width: 100%;
        height: 32px;
        display: flex;
        margin-bottom: 25px;
        // justify-content: space-between;
        align-items: center;
        margin-right: 100px;
        .el-form-item__label {
          font-size: 16px;
          font-family: MicrosoftYaHei;
          color: #cbe7ff !important;
        }
        .el-form-item {
          display: flex;
          align-items: center;
          margin: 0;
        }
        .el-input-group__append,
        .el-input-group__prepend {
          height: 28px;
          background: rgba(124, 173, 216, 0.2) !important;
          border-radius: 0px 4px 4px 0px !important;
          border: 1px solid #7cadd8 !important;
          color: #ffffff;
        }

        .bigBox-box-tab-item-xq {
          font-size: 16px;
          font-family: MicrosoftYaHei;
          color: #ffffff;
        }
        .append-box {
          display: flex;
          justify-content: flex-start;
          align-items: center;
          font-size: 16px;
          cursor: pointer;
          height: 28px;
        }
        .append-img {
          width: 14px;
          height: 14px;
          margin-left: 10px;
        }
        .weizhi {
          background: url('~@/assets/TeamAdministrator/location.png') no-repeat;
        }
        .renyuan {
          background: url('~@/assets/TeamAdministrator/input_box-contacts.png')
            no-repeat !important;
        }
      }
    }
  }
  textarea {
    background: transparent; //  背景透明
    border: 1px solid #7cadd8;
  }
  .el-textarea__inner {
    color: #fff !important;
  }
  .el-input__count {
    background-color: transparent;
    color: #7cadd8;
  }
}
.el-tree {
  width: 100%;
  background-color: transparent;
  color: rgba(255, 255, 255, 0.9);
}
// 重置dialog样式
.el-dialog {
  background: transparent;
  //   box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);
  //   border-radius: 4px;

  .el-dialog__header {
    background: rgba(6, 50, 88, 0.9);
    padding: 20px 0 0 20px;
    height: 24px;
    line-height: 24px;
  }

  .el-dialog__title {
    // color: #313335;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
  }

  .el-dialog__headerbtn {
    top: 20px;
    right: 20px;
    height: 14px;
    line-height: 14px;

    .el-dialog__close {
      // color: #354052;
      color: #4af6fc;
      width: 14px;
      height: 14px;
    }
  }

  .el-dialog__body {
    width: calc(100% - 40px);
    padding: 30px 20px 20px;
    // font-size: 0.16px;
    font-size: 0.18px;
    color: #313335;
    background: rgba(6, 50, 88, 0.9);
  }
  .el-dialog__footer {
    background: rgba(6, 50, 88, 0.9) !important;
  }
}
.el-tree-node:focus > .el-tree-node__content {
  background: rgba(74, 246, 252, 0.1);
  box-shadow: inset 0px 0px 10px 0px #4af6fc;
}
.el-tree-node__content:hover {
  background: rgba(74, 246, 252, 0.1);
}
.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
  background: rgba(74, 246, 252, 0.1);
  box-shadow: inset 0px 0px 10px 0px #4af6fc;
}
.xuanzechengyuanBox {
  display: flex;
  justify-content: space-between;
}
.tianjiachengyuan {
  margin-bottom: 15px;
  color: #4af6fc;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  cursor: pointer;
}
.chengyuanImg {
  width: 14px;
  height: 14px;
  background: url('~@/assets/TeamAdministrator/icon_add.png');
  margin-right: 8px;
}
.title {
  margin-bottom: 15px;
  color: #fff;
}
.el-tree-node__content > .el-tree-node__expand-icon {
  position: absolute;
  opacity: 0;
}

.el-tree-node__content {
  position: relative;
}
.chengyuanxiangqing {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  background: url('~@/assets/TeamAdministrator/icon_folder_shut(3).png');
}
.zhedie {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  background: url('~@/assets/TeamAdministrator/icon_folder_shut(2).png');
}
.zhankai {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  background: url('~@/assets/TeamAdministrator/icon_folder_shut(1).png');
}
.geren {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  background: url('~@/assets/TeamAdministrator/icon_folder_shut.png');
}
.dialogBox-box-right {
  border-left: 1px solid #1d5a8f;
  padding-left: 8px;
}
.dialogBox-box-left {
  padding-right: 8px;
}
.el-tree > .el-tree-node {
  display: inline-block;
  min-width: 100%;
}
.el-input.is-disabled .el-input__inner {
  height: 32px;
}
input {
  height: 32px;
}
</style>
